import { RouteRecordRaw } from 'vue-router'

import Layout from '@/layout/index.vue'

const homeRouter: RouteRecordRaw[] = [
  {
    path: '/home',
    component: Layout,
    redirect: '/home/models',
    meta: {
      title: '首页',
      icon: 'HomeFilled',
    },
    children: [
      {
        path: 'models',
        component: () => import('@/views/models/index.vue'),
        meta: {
          title: '模型管理',
          icon: 'Briefcase',
        },
      },
    ],
  },
]

export default homeRouter
